/**
 * Created by Administrator on 20213/21.
 * district Model 章节信息
 */
let DbInit = require('./DbInit');
let sequelize = DbInit.sequelize;
let Sequelize=DbInit.seqobj;
let spider = sequelize.define('spider', {

    id: {
        type: Sequelize.INTEGER,
        autoIncrement: true,
        primaryKey: true
    },  
    bookid:{
        type: Sequelize.STRING(10),        
        allowNull:true
    },  
    bookname:{
        type: Sequelize.STRING(100),
        allowNull:true
    },
    status:{//章节内容是完善的标记
        type: Sequelize.STRING(100),
        allowNull:true
    }

}, {
    createdAt: 'creattime',
    updatedAt:'updatetime',
    charset: 'utf8',
    collate: 'utf8_general_ci',
    freezeTableName: true // Model 对应的表名将与model名相同
});

spider.sync({ alter: true })

module.exports = spider;